/*
 * @Descripttion: 
 * @version: 
 * @Author: wtzhang
 * @Date: 2021-07-15 13:38:19
 * @LastEditors: wtzhang
 * @LastEditTime: 2021-07-26 15:09:45
 */
import { createRouter, createWebHistory, RouteRecordRaw, createWebHashHistory } from 'vue-router'
import Home from '../views/Home.vue'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/about',
    name: 'About',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  },
  {
    path: '/calcAttr',
    name: 'calcAttr',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "calcAttr" */ '../views/calcAttr.vue')
  },
  {
    path: '/lifeCycle',
    name: 'lifeCycle',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "lifeCycle" */ '../views/lifeCycle.vue')
  },
  {
    path: '/customHook',
    name: 'customHook',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "customHook" */ '../views/customHook.vue')
  },
  {
    path: '/toRefs',
    name: 'toRefs',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "toRefs" */ '../views/toRefs.vue')
  },
  {
    path: '/customRef',
    name: 'customRef',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "customRef" */ '../views/customRef.vue')
  },
  {
    path: '/customRef2',
    name: 'customRef2',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "customRef2" */ '../views/customRef2.vue')
  },
  {
    path: '/shallowReactive',
    name: 'shallowReactive',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "shallowReactive" */ '../views/shallowReactive.vue')
  },
  {
    path: '/shallowRef',
    name: 'shallowRef',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "shallowRef" */ '../views/shallowRef.vue')
  },
  {
    path: '/toRawAndMarkRaw',
    name: 'toRawAndMarkRaw',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "toRawAndMarkRaw" */ '../views/toRawAndMarkRaw.vue')
  }
]

const router = createRouter({
  history: createWebHashHistory(process.env.BASE_URL),
  routes
})

export default router
